#56 new
frank

bad redirect for applications deployed to sub-uri

Reported by frank | July 12th, 2009 @ 04:59 PM

This is a minute problem but if you have an application deployed to a sub-uri say

config.action_controller.relative_url_root = "/example"

restful_authentication will by default redirect to the root of the server instead of the root of the application:

def destroy
  logout_killing_session!
  flash[:notice] = "You have been logged out."
  redirect_back_or_default('/')
end

this same behaviour occurs in several places

I could not find how to specifically specify the root url of the application, I used root_url, which requires the map.root route to be set.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Restful Authentication Generator

This widely-used plugin provides a foundation for securely managing user
authentication:
* Login / logout
* Secure password handling
* Account activation by validating email
* Account approval / disabling by admin
* Rudimentary hooks for authorization and access control.

http://github.com/technoweenie/restful-authentication/tree

People watching this ticket

Pages